package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.Project;
import com.yegs.jltqc.VO.Quality;
import com.yegs.jltqc.VO.RpXunjian;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface QualityRepository extends JpaRepository<Quality,Long> {


    Page<Quality> findAll(Specification<Quality> specs, Pageable pageable);

    Page<Quality> findBasePlansByName(String name, Pageable pageable);

    Quality findFirstByIdIsAfter(Long id);

    Quality findFirstByIdBeforeOrderByIdDesc(Long id);

    Quality findFirstByOrderById();

    Quality findFirstByOrderByIdDesc();

}
